package com.wistech.search.solr.extend;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.wistech.search.solr.extend.service.CompanyManager;
import com.wistech.search.solr.extend.service.ProductManager;

/**
 * 外部数据上下文环境
 * 
 * @author Liuye
 * 
 */
public class ExternalDataContext {
	@Autowired
	private CompanyManager companyManager;
	@Autowired
	private ProductManager productManager;

	/**
	 * @return the onlineStatus
	 */
	public List<String> getOnlineCompanyIds() {
		return companyManager.findOnlineCompanyIds();
	}

	public Map<String, Float> getProductOrderNums() {
		return productManager.getAllProductOrderNums();
	}
}
